import Vue from 'vue'
import Router from 'vue-router'
import activity from './activity.vue'


 // const suiteDetail = resolve => require(['./suiteDetail'], resolve);
//兼容小程序
const Wuxigx = (resolve) => require(["./Wuxigx"], resolve);//欢乐洛阳行
const Anniversary = resolve => require(['./components/Anniversary.vue'],resolve);//通用充返
const acctJournal = resolve => require(['./components/acct-journal.vue'],resolve);//通用充返
const rechargeBack = resolve => require(['./components/rechargeBack'],resolve);//双旦充返
const qixi = resolve => require(['./components/qixi'], resolve);//299容量套餐
const wenshang = resolve => require(['./wenshang'], resolve);//汶上
const four299 = resolve => require(['./components/four299'], resolve);//299容量套餐
const happyFuyang = resolve => require(['./happyFuyang'], resolve);//欢乐泰州行
const happyjining = resolve => require(['./happyjining'], resolve);//欢乐济宁行
const happyFuyangQuan = resolve => require(['./happyFuyangQuan'], resolve);//阜阳骑行券
const happyGaozhou = resolve => require(['./happyGaozhou'], resolve);//欢乐洛高州
const weekly99 = resolve => require(['./components/weekly99'],resolve);//9.9活动
const knightage99 = resolve => require(['./components/knightage99'],resolve);//骑士团活动
const double11 = resolve => require(['./components/double11'],resolve);//双十一活动
const school99 = resolve => require(['./components/school99'],resolve);//校园卡-月卡
const fiveDayKq = resolve => require(["./components/5dayKq"], resolve);//1元骑10天
const tenday1kq = resolve => require(['./components/10day1kq'],resolve);//1元骑10天
const newYear = resolve => require(['./components/newYear'],resolve);//岁末月卡
const gift = resolve => require(['./components/RegisteredGift'],resolve);//注册送礼
const Activities = resolve => require(['./components/RegistrationActivities'], resolve);
const Activities1 = resolve => require(['./components/RegistrationActivities1'], resolve);
const Activities2 = resolve => require(['./components/RegistrationActivities2'], resolve);
const ActivitiesGeneral = resolve => require(['./components/ActivitiesGeneral'], resolve);
const getCouponDaily = resolve => require(['./components/getcouponDaily'], resolve);//秋高气爽，优惠券领取
const getTicket = resolve => require(['./components/getticket'], resolve);//秋高气爽，优惠券领取

const ACoolSummer = resolve => require(['./components/ACoolSummer'], resolve);//清凉一夏 送优劵活动
const adActivitie = resolve => require(['./components/adActivitie'], resolve);//清凉一夏 送优劵活动
// 未兼容小程序
const registerGift = resolve => require(['./components/registerGift'], resolve);//新人注册礼包
const mySuiteDetail = resolve => require(['./mySuiteDetail'], resolve);//套餐说明
const happyRide = resolve => require(['./happyRide'], resolve);//欢乐阜阳行
const night = resolve => require(['./components/night'], resolve);//夜游套餐1
const night2 = resolve => require(['./components/night2'], resolve);//夜游套餐2
const night3 = resolve => require(['./components/night3'], resolve);//夜游套餐3
const night4 = resolve => require(['./components/night4'], resolve);//夜游套餐3
const rechargeBackMoney = resolve => require(['./components/rechargeBackMoney'],resolve);//年尾充值返现活动
const rechargeBackMoney1 = resolve => require(['./components/rechargeBackMoney1'],resolve);//新年充值返现活动
const recharge = resolve => require(['./components/recharge'],resolve);
const rechargeIOS = resolve => require(['./components/rechargeIOS'],resolve);
// const LevyActivity = resolve => require(['./components/LevyActivity'],resolve);//六个轮子小名
// const LevyVote = resolve => require(['./components/LevyVote'],resolve);//征名投票开始
const IndividualVoting = resolve => require(['./components/IndividualVoting'],resolve);//个人投票
const priceAdjustment = resolve => require(['./components/priceAdjustment'],resolve);//价格调整
const winPhone = resolve => require(['./components/winPhone'],resolve);//骑行赢iphone
const winMate10 = resolve => require(['./components/winMate10'],resolve);//骑行赢mate10
const awardList = resolve => require(['./components/awardList'],resolve);//征名获奖列表
const caution = resolve => require(['./components/caution'],resolve);//安全出行
const Upgrade = resolve => require(['./components/Upgrade'],resolve);//升级公告
const AborrowA = resolve => require(['./components/AborrowA'], resolve);//升级公告
Vue.use(Router);


const routes = {
  path: '/',
  component: activity,
  children: [
    { path: '/activity/AborrowA', component: AborrowA, name: 'A借A还' },
    {path: '/suite/Wuxigx', component: Wuxigx, name: '套餐活动'},
    {path: '/activity/acctJournal', component: acctJournal, name: '通用充返'},
    {path: '/activity/rechargeBack', component: rechargeBack, name: '双旦充返'},
    {path: '/activity/adActivitie', component: adActivitie, name: '火锅'},
    {path: '/activity/qixi', component: qixi, name: '七夕阜阳容量套餐活动'},
    {path: '/activity/Upgrade', component: Upgrade, name: '升级公告'},
    {path: '/activity/ACoolSummer', component: ACoolSummer, name: '清凉一夏'},
    {path: '/activity/four299', component: four299, name: '299容量套餐'},
    {path: '/suite/wenshang', component: wenshang, name: '汶上'},
    {path: '/suite/happyFuyang', component: happyFuyang, name: '欢乐阜阳行'},
    { path: '/suite/happyGaozhou', component: happyGaozhou, name: '欢乐高州行' },
    {path: '/suite/happyjining', component: happyjining, name: '欢乐济宁行'},
    {path: '/activity/ActivitiesGeneral',component:ActivitiesGeneral, name: '注册送礼(通用)'},
    {path: '/activity/RegistrationActivities2',component:Activities2, name: '注册送礼(西店)'},
    {path: '/activity/RegistrationActivities1',component:Activities1, name: '注册送礼(新88元)'},
    {path: '/activity/RegistrationActivities',component:Activities, name: '注册送礼(新18元)'},
    {path: '/activity/RegisteredGift',component:gift, name: '注册送礼'},
    {path: '/activity/caution',component:caution, name: '安全出行'},
    {path: '/activity/newYear',component:newYear, name: '岁末月卡'},
    {path: '/activity/weekly99',component:weekly99, name: '9.9活动'},
    {path: '/activity/knightage99',component:knightage99, name: '骑士团活动'},
    {path: '/activity/tenday1kq',component:tenday1kq, name: '1元骑10天'},
    {path: '/activity/Anniversary',component:Anniversary, name: '2周年庆'},
    {path: '/activity/fiveDayKq',component:fiveDayKq, name: '骑行5天卡'},
    {path: '/activity/school99',component:school99, name: '校园卡-月卡'},
    {path: '/activity/double11',component:double11, name: '双十一活动'},
    {path: '/activity/rechargeBackMoney',component:rechargeBackMoney, name: '年尾充值返现活动'},
    {path: '/activity/rechargeBackMoney1',component:rechargeBackMoney1, name: '新年充值返现活动'},
    {path: '/activity/recharge',component:recharge, name: '充返活动'},
    {path: '/activity/rechargeIOS', component: rechargeIOS, name: '充返活动IOS'},
    {path: '/suite/mySuiteDetail', component: mySuiteDetail, name: '套餐说明'},
    {path: '/suite/happyRide', component: happyRide, name: '欢乐阜阳行'},
    {path: '/suite/happyFuyangQuan', component: happyFuyangQuan, name: '阜阳骑行券'},
    {path: '/activity/registerGift', component: registerGift, name:'新人注册礼包'},
    {path: '/activity/getcouponDaily', component: getCouponDaily, name:'秋高气爽，优惠券领取'},
    { path: '/activity/getTicket', component: getTicket, name: '骑行券领取' },
    {path: '/activity/night', component: night, name: '夜游套餐1'},
    {path: '/activity/night2', component: night2, name: '夜游套餐2'},
    {path: '/activity/night3', component: night3, name: '夜游套餐3'},
    { path: '/activity/night4', component: night4, name: '夜游套餐4' },
    // {path: '/activity/LevyActivity', component: LevyActivity, name: '征名活动'},
    // {path: '/activity/LevyVote', component: LevyVote, name: '征名投票'},
    {path: '/activity/IndividualVoting', component: IndividualVoting, name: '个人投票中心'},
    {path: '/activity/priceAdjustment', component: priceAdjustment, name: '价格调整'},
    {path: '/activity/winPhone', component: winPhone, name: '骑行赢iphone'},
    {path: '/activity/winMate10', component: winMate10, name: '骑行赢mate10'},
    {path: '/activity/awardList', component: awardList, name: '征名获奖列表'},
  ]
}

export default routes
